package com.witmore.neutron.ai.mcp.server.trading.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户与关注的股票的关联关系表
 * </p>
 *
 * @author 豆子高
 * @since 2025-08-05
 */
@Getter
@Setter
@TableName("scorpion_user_stock_relation")
public class ScorpionUserStockRelationDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 股票代码
     */
    @TableField("stock_code")
    private String stockCode;

    /**
     * 股票名称
     */
    @TableField("stock_name")
    private String stockName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 预警配置信息JSON
     */
    @TableField("alert_config")
    private String alertConfig;

    /**
     * 是否开启预警定时任务推送 0-关闭 1-开启
     */
    @TableField("alert_push_enabled")
    private Integer alertPushEnabled;

    /**
     * 是否删除 0-未删除 1-已删除
     */
    @TableField("is_deleted")
    private Byte isDeleted;
}
